package com.ruoyi.system.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 服务商联系方式对象 sys_supplier_contact
 * 
 * @author ruoyi
 * @date 2022-07-10
 */
@ApiModel(value = "SysSupplierContact",description="服务商联系方式")
public class SysSupplierContact extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 联系方式id */
    private Long contactId;

    /** 部门id */
    @ApiModelProperty(name="moduleTag", value="服务商")
    @NotBlank(message = "服务商不能为空")
    @Excel(name = "服务商id")
    private Long deptId;

    /** 负责人 */
    @ApiModelProperty(name="leader", value="负责人")
    @Excel(name = "负责人")
    private String leader;

    /** 联系电话 */
    @ApiModelProperty(name="phone", value="联系电话")
    @Size(min = 0, max = 12, message = "联系电话长度不能超过11个字符")
    @Excel(name = "联系电话")
    private String phone;

    /** 邮箱 */
    @ApiModelProperty(name="email", value="邮箱")
    @Email(message = "邮箱格式不正确")
    @Size(min = 0, max = 50, message = "邮箱长度不能超过50个字符")
    @Excel(name = "邮箱")
    private String email;

    /** 联系地址 */
    @ApiModelProperty(name="email", value="联系地址")
    @Excel(name = "联系地址")
    private String contactAddress;

    /** 二维码 */
    @ApiModelProperty(name="phone", value="二维码")
    @Excel(name = "二维码")
    private String qrCode;

    /** 联系人id */
    @Excel(name = "联系人id")
    private Long operId;

    public void setContactId(Long contactId) 
    {
        this.contactId = contactId;
    }

    public Long getContactId() 
    {
        return contactId;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setLeader(String leader) 
    {
        this.leader = leader;
    }

    public String getLeader() 
    {
        return leader;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }
    public void setContactAddress(String contactAddress) 
    {
        this.contactAddress = contactAddress;
    }

    public String getContactAddress() 
    {
        return contactAddress;
    }
    public void setQrCode(String qrCode) 
    {
        this.qrCode = qrCode;
    }

    public String getQrCode() 
    {
        return qrCode;
    }
    public void setOperId(Long operId) 
    {
        this.operId = operId;
    }

    public Long getOperId() 
    {
        return operId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("contactId", getContactId())
            .append("deptId", getDeptId())
            .append("leader", getLeader())
            .append("phone", getPhone())
            .append("email", getEmail())
            .append("contactAddress", getContactAddress())
            .append("qrCode", getQrCode())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("operId", getOperId())
            .toString();
    }
}
